package com.geotmt.billingcenter.modules;

import com.geotmt.billingcenter.common.result.ResponseResult;
import com.geotmt.billingcenter.modules.params.service.ParamService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description 健康检查接口
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/3/22 15:32
 * @Version     v1
 **/
@RestController
public class HealthController {

    @Resource
    private ParamService paramService;

    @RequestMapping(value = "/bc/healthCheck", method = RequestMethod.GET)
    public ResponseResult healthCheck(){
        paramService.dsList();
        return ResponseResult.build(HttpServletResponse.SC_OK,"health", null,true);
    }
}
